package Exercise;

import java.io.*;

/**
 * @author 王艺锡
 * @version 1.0
 */
public class Exercise02 {
    public static void main(String[] args) throws IOException {
        String filePath = "e:\\story.txt";

        InputStreamReader isr = new InputStreamReader(new FileInputStream(filePath),"gbk");
        BufferedReader br  = new BufferedReader(isr);
        String Line = " ";
        int i = 1;
        while ((Line = br.readLine()) != null){
            System.out.println("第" + i + "行:" + Line);
            i++;
        }
        br.close();


    }
}
